<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	SoptHashMap hm = RequestManager.getRequest(request);
	String curCategory = CommUtil.NVL(hm.get("CATEGORY_SEQ"),"");
	String curMenu = CommUtil.NVL(hm.get("CURMENU"),"");
	String parent = CommUtil.NVL(hm.get("PARENT"),"");
	CategoryProc category = new CategoryProc();
	hm = category.getCategoryBySeq(curCategory);
%>    

<%@page import="comm.util.SoptHashMap"%>
<%@page import="comm.util.RequestManager"%>
<%@page import="comm.util.CommUtil"%>
<%@page import="styledaco.board.CategoryProc"%>

<%@page import="statics.SoptVars"%>

<script type="text/javascript" src="http://<%=request.getServerName()+request.getContextPath()%>/editor/js/HuskyEZCreator.js"></script>
<script>
var oEditors = [];
nhn.husky.EZCreator.createInIFrame({
	oAppRef: oEditors,
	elPlaceHolder: "board_content",
	sSkinURI: "editor/SEditorSkin.html",
	fCreator: "createSEditorInIFrame"
});
</script>
<div>    
	<h2>게시판 글 등록  - <%=hm.get("CATEGORY_NAME") %></h2>
	
	<%if(curCategory.equals(SoptVars.MENU_STYLE)){ %>
		<%@include file="imgUploadForm.jsp" %>
	<%}if(curCategory.equals(SoptVars.MENU_SHOP)){ %>
		<%@include file="goodsConnectForm.jsp" %>
	<%} %>
	
	<form action="jsp/commons/writeProc.jsp" method="post" target="ifr" onsubmit="return checkWriteForm();">
		<input type="hidden" name="actionType" value="regBoard">
		<input type="hidden" name="curMenu" value="<%=curMenu %>">
		<input type="hidden" name="parent" value="<%=parent%>">
		<input type="hidden" name="goods_seq" id="goods_seq" value="">
		<input type="hidden" name="category_seq" id="write_category_seq" value="<%=curCategory %>">
		글제목:<input type="text" name="board_title" id="write_board_title"><br>
		글 내용:<textarea name="board_content" id="board_content"></textarea>
		<br>
		<input type="submit" value="저장" id="boardWriteBtn">
	</form>
	
</div>